/*
 * Copyright (c) JoinQuant Development Team
 * Author: Huayong Kuang <kuanghuayong@joinquant.com>
 */

#include <iostream>
#include <sys/time.h>

using namespace std;



int main(void)
{
    time_t t;
    struct timeval tv;

    time(&t);
    gettimeofday(&tv, NULL);

    cout << "time result: " << t << endl;
    cout << "gettimeofday result: " << tv.tv_sec << " " << tv.tv_usec << endl;

    return 0;
}

